
public class State {
	
	
	private int x ;
	private int y ;
	private int orientation ; // 0->North 1->East 2->South 3->West 
	private int gold ;
	private int pit ;
	private int wumpus ;
	
	
	
	public State(int x, int y, int orientation) {
		super();
		this.x = x;
		this.y = y;
		this.orientation=orientation;
	}
	
	
	public State(int x, int y, int gold, int pit, int wumpus, char orientation) {
		super();
		this.x = x;
		this.y = y;
		this.pit = pit;
		this.wumpus = wumpus;
		this.gold = gold;
		this.orientation = orientation ;
	}
	
	
	
	
	public int getX() {
		return x;
	}
	public void setX(int x) {
		this.x = x;
	}
	public int getY() {
		return y;
	}
	public void setY(int y) {
		this.y = y;
	}
	public int isPit() {
		return pit;
	}
	public void setPit(int pit) {
		this.pit = pit;
	}
	public int isWumpus() {
		return wumpus;
	}
	public void setWumpus(int wumpus) {
		this.wumpus = wumpus;
	}
	public int isGold() {
		return gold;
	}
	public void setGold(int gold) {
		this.gold = gold;
	}
	
	public void setOrientation(char orientation)
	{
		this.orientation = orientation ;
	}
	
	public int getOrientation()
	{
		return this.orientation;
	}
	
	public boolean isEqual(State state)
	{
		if( x == state.x && y == state.y && orientation == state.orientation)
			return true; 
		else 
			return false ;
	}

}
